$j=jQuery.noConflict();
$j(document).ready(function(){
	$j("#prSearchInput").keyup(function(event){
   $j.ajax({url:"actions/productSuggest.php",
      data:"search="+$j("#prSearchInput").val()+"&city="+$j("#cityHidden").val(),
      success:function(result){
         $j(".prSearchRes").html(result);
         $j(".prSuggestRes").mouseover(function(event)
         {
         	$j(this).css("background-color", "lightblue");
         });
         $j(".prSuggestRes").mouseout(function(event)
          {
         	$j(this).css("background-color", "white");
         });
         $j(".prSuggestRes").click(function()
         {
         	var res=$j(this).html();
         	$j("#prSearchInput").val(res);
         	$j(".prSuggestRes").html('');
           	$j("#prSearchForm").submit();
         });
      }
   });
});
});